<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<%@ include file="language.jsp" %>
<%
request.setAttribute("errorInfo",request.getParameter("error"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>会员登入-科百特(厦门)信息科技有限公司</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="shortcut icon" href="images/favicon.png" />
<link rel="stylesheet" type="text/css" href="user/css/style-login.css">
<script type="text/javascript" src="scripts/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="user/js/script.js"></script>
<script type="text/javascript" src="scripts/user/common.js"></script>
<script type="text/javascript" src="scripts/user/login.js"></script>
</head>
<body style=" background: #57bfe1; ">

	<div class="loginCont">
		<div class="loginBox1">
			<img src="user/img/logo.png">
		</div>
		<div class="loginBox2">
			<p>科百特(厦门)信息科技有限公司</p>
		</div>
		<div class="loginBox2">
			<a href="javascript:;" class="loginAn1">登 入</a>
			<a href="user/register.jsp" target="_blank" class="loginAn2">注 册</a>
		</div>
	</div>
	
	<div class="Bj_Cont" style="display: none;">
		<div class="Bj_Box">
			<div class="Bj_BoxTop">
				<a href="javascript:;" class="Bj_BoxTopAn">X</a>
			</div>
			<form action="registerUser!login.action" method="post" class="login_form" id="my-form">
			<div class="Bj_Box1">
				<h1 class="Bj_Tit">登入科百特</h1>
				<input class="Bj_BoxK Bj_BoxK1" id="loginName" name="registerUserDTO.loginName" type="text" placeholder="请输入登入账号" value="">
				<input class="Bj_BoxK Bj_BoxK2" id="password" name="registerUserDTO.password1" type="password" placeholder="请输入登入密码" value="">
				<div class="Bj_yzm">
					<input class="Bj_yzm1" name="code" id="userLogin_validCode" type="text" placeholder="填写验证码" value="">
					<div class="Bj_yzm2">
						<a href="javascript:refreshCheckCode1('login_codeImg');"class="logoBoxContHR2">
           					<img id="login_codeImg" border=0 src="user/randomCode" class="yzm"/>
         				</a>
         			</div>
				</div>
				<div class="Bj_bk">
					<a href="usre/findPwd.jsp" target="_blank">忘记密码？</a>
				</div>
				<c:if test="${not empty errorInfo }">
					<script type="text/javascript">$(".Bj_Cont").show();</script>
	                <div class="social_sign">
	                	<div style="color:red;font-size:16px;">
				       		<c:if test="${errorInfo eq 'LoginNameOrPasswordError' }">会员账号或密码不正确,请重新登入!</c:if>
				     		<c:if test="${errorInfo eq 'NotActivation' }">会员账号未激活，请联系客服进行激活!</c:if>
				     		<c:if test="${errorInfo eq 'LoginNameAlreadyLock' }">会员账号已被冻结，请联系客服!</c:if>
				       </div>
	                </div>  
      			 </c:if>
				<input class="Bj_An" onclick="userLogin1('yes')" type="button" value="登    入">
			</div>
			</form>
		</div>
	</div>
	<script type="text/javascript">
		$(function(){
			document.onkeydown = function(evt){
				var evt = window.event?window.event:evt;
				if(evt.keyCode==13){
					userLogin1('yes');
				}
			}
			$('#loginName,#password').val('');
		});
		$(function (){
		    $('input[name="registerUserDTO.loginName"]').focus(function (){
		        if($.trim($(this).val()) == '用户名'){
		            $(this).val('');
		        }
		    }).blur(function (){
		        if($.trim($(this).val()) == ''){
		            //$(this).val('用户名');
		        }
		    });
		
		    $('input[name="registerUserDTO.password1"]').focus(function (){
		        if($.trim($(this).val()) == '密 码'){
		            $(this).val('');
		        }
		    }).blur(function (){
		        if($.trim($(this).val()) == ''){
		           //$(this).val('密 码');
		        }
		    });
		    
		    $('input[name="code"]').focus(function (){
		        if($.trim($(this).val()) == '验证码'){
		            $(this).val('');
		        }
		    }).blur(function (){
		        if($.trim($(this).val()) == ''){
		           // $(this).val('验证码');
		        }
		    });
		});
		
	</script>
</body>
</html>